package com.erp.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.system.dao.LeaveDao;
import com.erp.system.domain.LeaveDO;
import com.erp.system.service.LeaveService;



@Service
public class LeaveServiceImpl implements LeaveService {
	@Autowired
	private LeaveDao leaveDao;
	
	@Override
	public LeaveDO get(Long id){
		return leaveDao.get(id);
	}
	
	@Override
	public List<LeaveDO> list(Map<String, Object> map){
		return leaveDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return leaveDao.count(map);
	}
	
	@Override
	public int save(LeaveDO leave){
		return leaveDao.save(leave);
	}
	
	@Override
	public int update(LeaveDO leave){
		return leaveDao.update(leave);
	}
	
	@Override
	public int remove(Long id){
		return leaveDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return leaveDao.batchRemove(ids);
	}

	@Override
	public List<LeaveDO> reportlist(Map<String, Object> map) {
		return leaveDao.reportlist(map);
	}

	@Override
	public int reportcount(Map<String, Object> map) {
		return leaveDao.reportcount(map);
	}

}
